package com.waypolice.pojo;

import java.io.Serializable;

public class UpmsRolePermission implements Serializable{
    private Integer rolePermissionId;

    private Integer roleId;

    private Integer permissionId;

    private String str1;

    private String str2;

    private String str3;

    private String str4;

    private String str5;

    public Integer getRolePermissionId() {
        return rolePermissionId;
    }

    public void setRolePermissionId(Integer rolePermissionId) {
        this.rolePermissionId = rolePermissionId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Integer permissionId) {
        this.permissionId = permissionId;
    }

    public String getStr1() {
        return str1;
    }

    public void setStr1(String str1) {
        this.str1 = str1 == null ? null : str1.trim();
    }

    public String getStr2() {
        return str2;
    }

    public void setStr2(String str2) {
        this.str2 = str2 == null ? null : str2.trim();
    }

    public String getStr3() {
        return str3;
    }

    public void setStr3(String str3) {
        this.str3 = str3 == null ? null : str3.trim();
    }

    public String getStr4() {
        return str4;
    }

    public void setStr4(String str4) {
        this.str4 = str4 == null ? null : str4.trim();
    }

    public String getStr5() {
        return str5;
    }

    public void setStr5(String str5) {
        this.str5 = str5 == null ? null : str5.trim();
    }

    @Override
    public String toString() {
        return "UpmsRolePermission [rolePermissionId=" + rolePermissionId + ", roleId=" + roleId + ", permissionId="
                + permissionId + ", str1=" + str1 + ", str2=" + str2 + ", str3=" + str3 + ", str4=" + str4 + ", str5="
                + str5 + "]";
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((permissionId == null) ? 0 : permissionId.hashCode());
        result = prime * result + ((roleId == null) ? 0 : roleId.hashCode());
        result = prime * result + ((rolePermissionId == null) ? 0 : rolePermissionId.hashCode());
        result = prime * result + ((str1 == null) ? 0 : str1.hashCode());
        result = prime * result + ((str2 == null) ? 0 : str2.hashCode());
        result = prime * result + ((str3 == null) ? 0 : str3.hashCode());
        result = prime * result + ((str4 == null) ? 0 : str4.hashCode());
        result = prime * result + ((str5 == null) ? 0 : str5.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        UpmsRolePermission other = (UpmsRolePermission) obj;
        if (permissionId == null) {
            if (other.permissionId != null)
                return false;
        } else if (!permissionId.equals(other.permissionId))
            return false;
        if (roleId == null) {
            if (other.roleId != null)
                return false;
        } else if (!roleId.equals(other.roleId))
            return false;
        if (rolePermissionId == null) {
            if (other.rolePermissionId != null)
                return false;
        } else if (!rolePermissionId.equals(other.rolePermissionId))
            return false;
        if (str1 == null) {
            if (other.str1 != null)
                return false;
        } else if (!str1.equals(other.str1))
            return false;
        if (str2 == null) {
            if (other.str2 != null)
                return false;
        } else if (!str2.equals(other.str2))
            return false;
        if (str3 == null) {
            if (other.str3 != null)
                return false;
        } else if (!str3.equals(other.str3))
            return false;
        if (str4 == null) {
            if (other.str4 != null)
                return false;
        } else if (!str4.equals(other.str4))
            return false;
        if (str5 == null) {
            if (other.str5 != null)
                return false;
        } else if (!str5.equals(other.str5))
            return false;
        return true;
    }
}